 //处理模块4的移动脚本
cc.Class({
    extends: cc.Component,

    properties: {
        cell1:cc.Node,
        cell2:cc.Node,
        cell4:cc.Node,
        cell5:cc.Node
    },

    // LIFE-CYCLE CALLBACKS:
    onLoad () {
        let cell1X=this.cell1.x;
        let cell2X=this.cell2.x;
        let cell4X=this.cell4.x;
        let cell5X=this.cell5.x;
        this.cell1.runAction(cc.repeatForever(cc.sequence(cc.moveTo(1,cc.v2(cell1X+this.cell1.width,this.cell1.y)),cc.moveTo(1,cc.v2(cell1X,this.cell1.y)))));
        this.cell2.runAction(cc.repeatForever(cc.sequence(cc.moveTo(1,cc.v2(cell2X-this.cell2.width,this.cell2.y)),cc.moveTo(1,cc.v2(cell2X,this.cell2.y)))));
        this.cell4.runAction(cc.repeatForever(cc.sequence(cc.moveTo(1,cc.v2(cell4X+this.cell4.width,this.cell4.y)),cc.moveTo(1,cc.v2(cell4X,this.cell4.y)))));
        this.cell5.runAction(cc.repeatForever(cc.sequence(cc.moveTo(1,cc.v2(cell5X-this.cell5.width,this.cell5.y)),cc.moveTo(1,cc.v2(cell5X,this.cell5.y)))));
    },

    start () {

    },

    // update (dt) {},
});
